package pub.tbc.mybatis.extend.type;

import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.TypeHandler;
import pub.tbc.mybatis.domain.Sex;

import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author tbc on 2017/5/10 16:37:47.
 */
@Slf4j
public class SexEnumTypeHandler1 implements TypeHandler<Sex> {
    @Override
    public void setParameter(PreparedStatement ps, int i, Sex parameter, JdbcType jdbcType) throws SQLException {

    }

    @Override
    public Sex getResult(ResultSet rs, String columnName) throws SQLException {
        return null;
    }

    @Override
    public Sex getResult(ResultSet rs, int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public Sex getResult(CallableStatement cs, int columnIndex) throws SQLException {
        return null;
    }
}
